package hu.bme.mit.rifl.business.preprocess.nodes.impl;

import hu.bme.mit.rifl.business.preprocess.nodes.CheckRepo;
import hu.bme.mit.rifl.datamodel.Order;

public class CheckRepoImpl implements CheckRepo {
	
	@Override
	public Order checkRepo(Order order, String decision) {
		if(decision.equalsIgnoreCase("true")){
			order.setState("FEASIBLE");
		} else if (decision.equalsIgnoreCase("false")){
			order.setState("UNFEASIBLE");
		}
		return order;
	}
}
